package com.yqg.education.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yqg.education.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxf
 * @since 2025-03-01
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    @Select("select * from menu where id in (select menu_id from role_menu where role_id = #{role_id})")
    List<Menu> selectMenus(Integer roleId);
}
